Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed npm - replaced hidden module with _module variable #1156

Merged
merged 1 commit into from
Oct 13, 2014
Merged

Fixed npm - replaced hidden module with _module variable #1156

merged 1 commit into from
Oct 13, 2014

Conversation

AnsonT
Copy link
Contributor

@AnsonT AnsonT commented Oct 9, 2014

The npm packages do not work because the module exports variable is hidden by the locally defined module variable within the functions - module.exports.settings is undefined. This fix adds a _module alias. A better but more involved fix is to not use module as local variable name, but that requires changing all the js files.

@AnsonT AnsonT mentioned this pull request Oct 9, 2014
jlukic added a commit that referenced this pull request Oct 13, 2014
Fixed npm - replaced hidden module with _module variable
@jlukic jlukic merged commit f15e93d into Semantic-Org:master Oct 13, 2014
@jlukic
Copy link
Member

jlukic commented Oct 13, 2014

Its surprising using module as a local variable breaks things.

@AnsonT
Copy link
Contributor Author

AnsonT commented Oct 13, 2014

Defining the local 'module' variable hides the outer definition. It's hidden for the entire block, not just after it's defined.

Thanks for the merge.

davide added a commit to davide/Semantic-UI that referenced this pull request Oct 25, 2014
…form behavior

With this fix one needs to explicitely define:
$.fn.form = require('semantic-ui/npm/modules/behavior/form');
@hungryzi
Copy link

Why is transition not exported as a module? :-/

@jlukic
Copy link
Member

jlukic commented May 12, 2015

@davide
Copy link
Contributor

davide commented Aug 9, 2015

@hungryzi pull request 2816 (linked above) will correctly export transition as a module. Not sure when the next npm release is due though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants